package Exp5_1;

import Exp5_1.Course;

public class TestCourse {
    public static void main(String[] args){
        try {
            Course c1 = new Course("1001", "Li", 7);
        }
        catch (CreditException ex){
            System.out.println(ex);
        }
        try {
            Course c2 = new Course("1002", "Zhang", 0.1);
        }
        catch (CreditException ex){
            System.out.println(ex);
        }
        try {
            Course c3 = new Course("1003", "Wang", 3);
        }
        catch (CreditException ex){
            System.out.println(ex);
        }
    }
}
